import ctypes

import numpy as np
import torch


import time
import os
import random
import AirCombat_demo as env

os.environ['KMP_DUPLICATE_LIB_OK'] = 'TRUE'
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")

env.CEnvInit_test(0)

a1 =0
a2 =90
flag =1
delta=0

while(1):
    action = [123,6000,0.64]
    env.CEnvStep_test(action, 1)
    env.Capture_grid()
    print("flag = ",env.Capture_grid())
    # env.GetCState()





